package com.mengniu.commerce.collect.third.response.member;

import lombok.Data;

import java.util.List;

/**
 * @author 13754
 */
@Data
public class MemberInfoResponse {
    private Code code;
    private DataInfo data;

    @Data
    public static class Code {
        private String errcode;
        private String errmsg;
    }

    @Data
    public static class DataInfo {
        private List<UserBaseInfo> userBaseInfoList;
    }

    @Data
    public static class UserBaseInfo {
        private long birthday;
        private int income;
        private long belongVid;
        private List<MemberIdentifyInfo> memberIdentifyInfoList;
        private long belongVidBindTime;
        private int education;
        private int gender;
        private String avatarUrl;
        private List<Integer> sourceChannel;
        private List<ExtendInfo> extendInfoList;
        private boolean isFans;
        private String industry;
        private long becomeCustomerTime;
        private String identityCardNum;
        private boolean isCustomer;
        private long wid;
        private String phone;
        private long becomeMemberTime;
        private boolean hasValidMemberCard;
        private String name;
        private String nickname;
        private String email;
        private String hobby;
        private int status;
    }

    @Data
    public static class MemberIdentifyInfo {
        private int membershipType;
        private long levelId;
        private long membershipPlanId;
    }

    @Data
    public static class ExtendInfo {
        private int groupNum;
        private String value;
        private String key;
        private int fieldId;
    }
}
